using System.Collections.Generic;
using System.Threading.Tasks;
using ThridGroup.ERP.DTO;
using Volo.Abp.Application.Services;

namespace ThridGroup.ERP.WarehouseManagement
{
    /// <summary>
    /// 赋码管理服务接口
    /// </summary>
    public interface ICodingmanagementService : IApplicationService
    {
        /// <summary>
        /// 添加赋码管理
        /// </summary>
        Task<int> AddCodingmanagement(CreateUpdateCodingmanagementDto input);

        /// <summary>
        /// 获取所有赋码管理
        /// </summary>
        Task<List<CodingmanagementDto>> GetCodingmanagements();

        /// <summary>
        /// 获取符合条件的赋码管理列表
        /// </summary>
        Task<List<CodingmanagementDto>> GetCodingmanagementsByCondition(string barCode, string businessCode, string businessName);

        /// <summary>
        /// 获取单个赋码管理
        /// </summary>
        Task<CodingmanagementDto> GetCodingmanagement(int id);

        /// <summary>
        /// 更新赋码管理
        /// </summary>
        Task<int> UpdateCodingmanagement(int id, CreateUpdateCodingmanagementDto input);

        /// <summary>
        /// 删除赋码管理
        /// </summary>
        Task DeleteCodingmanagement(int id);

        /// <summary>
        /// 检查条码是否存在
        /// </summary>
        Task<bool> IsBarCodeExist(string barCode, int? excludeId = null);

        /// <summary>
        /// 检查业务编码是否存在
        /// </summary>
        Task<bool> IsBusinessCodeExist(string businessCode, int? excludeId = null);
    }
} 